<div class=" index">
<h2><?php echo('Incidencia'); ?></h2>




<?php
		echo $this->Form->create('Incidencia', array(
			'url' => array_merge(array('action' => 'index'), $this->params['pass'])
			));
		 echo $this->Form->input('victima', array('div' => false, 'empty' => true));
	
	 echo $this->Form->submit(__('Search', true), array('div' => false));
				echo $this->Form->end();?>


<table cellpadding="0" cellspacing="0">
	<tr>
	   
		
		<th>Id</th>
		<th>IED</th>
		<th>Caso Reportado</th>
                <th>Fecha del caso </th>
				<th>Victima  </th>
                <th>Ubicacion </th>
                
				 
                
                  <th>Accion</th>
		
	</tr>
	

	<?php foreach($incidencias as $incidencia):?>
	<tr>
                  <td><?php echo $incidencia['Incidencia']['id']?></td>
		<td><?php echo  $incidencia['Incidencia']['insteducativa_id']?></td>
                <td><?php echo  $incidencia['Incidencia']['casoreportado_id']?></td>
			<td><?php echo  $incidencia['Incidencia']['fechacaso']?></td>
                        <td><?php echo  $incidencia['Incidencia']['victima']?></td>
                          <td><?php echo  $incidencia['Incidencia']['nomubica']?></td>
                           
                           
                              
		
		<td class="actions">
                        <?php echo $this->Html->link(__('Ver'), array('action' => 'view',  $incidencia['Incidencia']['id']), array('class'=>'view')); ?>
			<?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $incidencia['Incidencia']['id']), array('class'=>'edit')); ?>
			<?php echo $this->Form->postLink(__('Eliminar'), array('action' => 'delete',  $incidencia['Incidencia']['id']), array('class'=>'delete'), __('Desea Eliminar?')); ?>
			</td>

	</tr>
<?php endforeach?>
        
        <table>

<td align="right"><span class="lbutton"><?php echo $this->Html->link( "Nuevo",   array('action'=>'add') ); ?></span></td>
	</table>
	</table>
	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>	
	</div>
	
	

